package tingyu.array;

/**
 * Created by TingYan on 2018/9/15.
 */
public class Student {

    private String name;
    private int score;

    public Student(String name, int score) {
        this.name = name;
        this.score = score;
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", score='" + score + '\'' +
                '}';
    }

    public static void main(String[] args) {
        DynamicArray<Student> array = new DynamicArray<>();
        array.addLast(new Student("tingyu", 98));
        array.addLast(new Student("Amy", 92));
        array.addLast(new Student("Java", 77));
        System.out.println(array);
    }
}
